<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>fsdfas</title>
    <meta http-equiv="X-UA-compatible" content="IE=edge">
    <!-- ie采用最新渲染模式 -->
    <meta name="viewport" content="width=device-width" initial-scale='1'>
    <!-- text-seize-adjust 屏幕旋转文字大小 -->
    <!-- box-sizing:border-box -->
    <style>
    *:after, *:before {
        display: block;
        content:'';
    </style>}
</head>
<style>
/*div p:first-child{
		background-color: red;
	}*/
body div:last-child>.wew:first-of-type {
    background-color: red;
}
</style>

<body>
    <div></div>
    <div></div>
    <div>
        <div>
            <p class="wew">1212</p>
        </div>
        <span>	qwqe
		</span>
        <p class="wew">fsaf</p>
        <p class="wew">fsfa</p>
    </div>
</body>

</html>